package com.hunan.api.catv.service.biz.index;

import com.hunan.api.catv.entity.ServiceResult;
import com.hunan.api.catv.service.ResultService;
import com.hunan.api.catv.service.biz.cache.CacheBiz;
import com.hunan.api.catv.utils.GsonUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class IndexBiz extends ResultService {

    @Autowired
    CacheBiz cacheBiz;

    public ServiceResult get(String key) {
        return buildOK(GsonUtils.fromJson(cacheBiz.apiDictCache(key), Object.class));
    }
}
